// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@use "~/assets/css/variables.scss" as *;',
        },
      },
    },
  },
  app: {
    head: {
      charset: "utf-8",
      viewport: "width=device-width, initial-scale=1",
      title: "nuxt ssr 项目",
      meta: [
        // <meta name="description" content="My amazing site">
        {
          name: "description",
          content: "这是一个vue3 + nuxt3的服务端渲染项目",
        },
        { name: "keyword", content: "vue3, nuxt3, vite" },
      ],
    },
    // 切换layout组件添加过渡
    // layoutTransition: { name: "layout", mode: "in-out" },
    // 切换路由组件添加过渡
    pageTransition: {
      name: "fade",
      mode: "out-in", // default
    },
  },
});
